package com.usian.pojo.vo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.ToString;

/**
 * Hibernate Validator 数据校验框架:https://blog.csdn.net/qq_35512802/article/details/140711194
 * @TODO:
 * @Author:baimu
 * @Date:2024 12 03 11 49
 **/

@Data
@ToString
public class LoginReqVo {


    @NotBlank(message="用户名不能为空")
    String username;

    @NotBlank(message="密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须介于 6 和 20 之间")
    String password;
}